package service;

import dao.goodsMapper;
import entity.goods;
import entity.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddGoodsService {
    @Autowired
    private goodsMapper goodsMapper;

    public boolean addGoods(goods goods){
        int insert = goodsMapper.insert(goods);
        if(insert > 0){
            return true;
        }
        return false;
    }
}
